﻿@namespace BulmaRazor.Components

@inherits IconBase

<span @attributes="Attributes" class="icon-check-radio @classes">
    <i class="@IconClass"></i>
</span>

@code {
    /// <summary>
    /// 类
    /// </summary>
    string classes => CssBuilder.Default("icon")
        .AddClassFromAttributes(Attributes)
        .AddClass("is-small", IsSmall)
        .AddClass("is-medium", IsMedium)
        .AddClass("is-large", IsLarge)
        .AddClass(Color.Value, Color.Value)
        .AddClass("is-checked",Checked)
        .AddClass("is-left", IsLeft)
        .AddClass("is-right", IsRight)
        .Build();
    string IconClass =>  Checked ? "fa fa-check-circle" : "fa fa-circle-thin";
    
    /// <summary>
    /// 状态
    /// </summary>
    [Parameter]
    public bool Checked { get; set; }

}